<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="com.pmsco.pms.core.constant.PmsConstant"%>
<%@ page import="com.pmsco.pms.util.BundleUtil"%>
<%@ include file="/WEB-INF/import/tagLibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script>
	    $(function() {
	        $("button").button();
	    });
    </script>
</head>
<body class="pmsMainBody">
	<table class="pmsMainTable">
		<tr class="pmsMainTableWrapperTd">
			<td>
			    <table class="tableForm">
			    	<input type="hidden" id="id" name="id" value="${command.id}"/>
			    	<c:if test="${errorMessage != null}">
			    		<tr><td colspan="2" class="tableFormLabelRequired"><spring:message code="${errorMessage}"/></td></tr>	
			    	</c:if>
					<tr>
						<td class="tableFormLabel"><label class="tableFormLabelRequired">*&nbsp;</label><spring:message code="category.name"/></td>
						<td><input type="text" class="talbeFormTextBox" id="name" name="name" value="${command.name}" size="50" required/></td>
					</tr>
					<tr>
						<td class="tableFormLabel"><label class="tableFormLabelRequired">*&nbsp;</label><spring:message code="category.enName"/></td>
						<td><input type="text" class="talbeFormTextBox" id="enName" name="enName" value="${command.enName}" size="50" required/></td>
					</tr>
					<tr>
						<td class="tableFormLabel"><label class="tableFormLabelRequired">*&nbsp;</label><spring:message code="category.description"/></td>
						<td><textarea class="talbeFormTextBox" id="description" name="description" cols="50" rows="10" required>${command.description}</textarea></td>
					</tr>
					<tr>
						<td colspan="2">
							<table align="center">
								<tr>
									<td>
										<button class="tableFormButton" onclick="return submitAction('<%=PmsConstant.saveCategory_JspUrl%>', true)"><spring:message code="button.save"/></button>
									</td>
									<td>
										<button class="tableFormButton" onclick="return confirmAction('<%=PmsConstant.listCategory_JspUrl%>', cancelCategoryDetailTitle, cancelCategoryDetailMessage)"><spring:message code="button.cancel"/></button>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
<script>
	alert(${command.name});
</script>
</html>